#ifndef WALL_H
#define WALL_H
#include "function.h"
class wall{
private:
    short h;
    short w;//打印墙的具体位置
public:
    wall(){
        h = height;
        w = width;
    }//构造函数
    void print_wall(){
        color(10);
        for(int i = 0;i<w;i++)
            cout<<"#";
        gotoxy(0,1);
        for(int i = 1;i<height;i++)
            cout<<"#"<<endl;
        for(int i = 1;i<height;i++){
            gotoxy(width-1,i);
            cout<<"#";
        }
        gotoxy(0,height-1);
        for(int i = 0;i<width;i++)
            cout<<"#";
        cout<<endl;
        color(12);
        cout<<"snake: 1.press 'w''a''s''d' to start or move;  2.'$' is food;  3.press space to pause; 4.press 'v' to speed up; 5.press 'b' to speed down;"<<endl;
    }//打印墙

};
#endif